//202302104033梁荣美
package cn.edu.sdjzu.xg.eagle.dao.mapper;

import cn.edu.sdjzu.xg.eagle.entity.Student;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;
import cn.edu.sdjzu.xg.eagle.util.Pagination;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface StudentDao {
    Collection<Student> findAll(Connection connection, List<Condition> conditionList,
                                Pagination pagination) throws SQLException, BaseException, InvocationTargetException;
    //根据id,返回1个Student对象或空

    Student find(Connection connection, Long id) throws SQLException, BaseException, InvocationTargetException;

    //增加一个老师对象(id是Actor对象的id）
    boolean add(Connection connection, Student Student)
            throws  SQLException, BaseException, InvocationTargetException;

    //修改一个老师对象(id是Actor对象的id）
    boolean update(Connection connection, Student Student)
            throws  SQLException, BaseException, InvocationTargetException;

    //增加一个老师对象(id是Actor对象的id）
    boolean delete(Connection connection, Integer id)
            throws  SQLException, BaseException, InvocationTargetException;



}